package {
	
	import mx.formatters.CurrencyFormatter;

	public class CFormatter extends CurrencyFormatter {
		
		public function CFormatter() {
			super();
		}
		
		public function set props(obj:Object):void {
			if (obj != null) {
				currencySymbol = obj.currencySymbol;
				decimalSeparatorFrom = obj.decimalSeparatorFrom;
				decimalSeparatorTo = obj.decimalSeparatorTo;
				thousandsSeparatorFrom = obj.thousandsSeparatorFrom;
				thousandsSeparatorTo = obj.thousandsSeparatorTo;
				useThousandsSeparator = obj.useThousandsSeparator;
			}
			precision = 2;
			alignSymbol = "left"; 
		}
		
		public function formatNoThousandsSeparator(value:Object):String {
			precision = 0;
			var s:String = format(value);
			precision = 2; 
			return s;
		}
		
	}
	
}